﻿using MindASPCoreWebAPI.DtoModel.Common;
using MindASPCoreWebAPI.DtoModel.SystemManager;
using MindASPCoreWebAPI.PoModel.SystemManager;
using MindASPCoreWebAPI.Repository.SystemManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MindASPCoreWebAPI.Service.SystemManager
{
    public class ClientAdminService
    {
        // public ClientAdminRepository _ClientAdminRepository;
        public ClientAdminRepository _ClientAdminRepository;
        public ClientAdminService(ClientAdminRepository ClientAdminRepository)
        {
            _ClientAdminRepository = ClientAdminRepository;
        }

        /// <summary>
        /// 活动管理显示
        /// </summary>
        /// <returns></returns>
        public PagerResult<ClientAdminDto> ClientAdminShow(int hang, int ka, int qu, int fen, int shi, int ad, string gong, string xname, int pageIndex, int pageSize)

        {
            var list = _ClientAdminRepository.ClientAdminShow(hang,ka,qu,fen,shi,ad,gong,xname,pageIndex,pageSize);
            return list;
        }
        /// <summary>
        /// 行业下拉
        /// </summary>
        /// <returns></returns>
        public List<IndustryAdminModel> Inddown()
        {
            var list = _ClientAdminRepository.Inddown();
            return list;
        }
        /// <summary>
        /// Ka下拉
        /// </summary>
        /// <returns></returns>
        public List<KaModel> Kadown()
        {
            var list = _ClientAdminRepository.Kadown();
            return list;
        }
        /// <summary>
        /// 区域下拉
        /// </summary>
        /// <returns></returns>
        public List<AreaModel> Areadown()
        {
            var list = _ClientAdminRepository.Areadown();
            return list;
        }

        /// <summary>
        /// 分级下拉
        /// </summary>
        /// <returns></returns>
        public List<LevelModel> Leveldown()
        {
            var list = _ClientAdminRepository.Leveldown();
            return list;
        }
        /// <summary>
        /// 客户管理删除
        /// </summary>
        /// <param name="cust_id"></param>
        /// <returns></returns>
        public int Cust_Delete(int cust_id)
        {
            var list = _ClientAdminRepository.Cust_Delete(cust_id);
            return list;
        }
        /// <summary>
        /// 添加反填
        /// </summary>
        /// <returns></returns>
        public List<ClientAdminDto> Show(int cust_id)
        {
            var list = _ClientAdminRepository.Show(cust_id);
            return list;
        }
        /// <summary>
        /// 公司性质下拉
        /// </summary>
        /// <returns></returns>
        public List<NatModel> Natdown()
        {
            var list = _ClientAdminRepository.Natdown();
            return list;
        }
        /// <summary>
        /// 客户职位下拉
        /// </summary>
        /// <returns></returns>
        public List<PosiModel> Posidown()
        {
            var list = _ClientAdminRepository.Posidown();
            return list;
        }
        /// <summary>
        /// 权力决策下拉
        /// </summary>
        /// <returns></returns>
        public List<ActhModel> Acthdown()
        {
            var list = _ClientAdminRepository.Acthdown();
            return list;
        }
        /// <summary>
        /// 语言下拉
        /// </summary>
        /// <returns></returns>
        public List<LangModel> Langdown()
        {
            var list = _ClientAdminRepository.Langdown();
            return list;
        }
        /// <summary>
        /// 公司显示
        /// </summary>
        /// <returns></returns>
        public List<CompanyAdminModel> CompList(string comname)
        {
            var list = _ClientAdminRepository.CompList(comname);
            return list;
        }
        /// <summary>
        /// 客户管理添加
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        public int ClientAdd(CustAdminModel list)
        {
            var data = _ClientAdminRepository.ClientAdd(list);
            return data;
        }
        /// <summary>
        /// 编辑反填
        /// </summary>
        /// <param name="cust_id"></param>
        /// <returns></returns>
        public EditShow EditeList(int cust_id)
        {
            var list = _ClientAdminRepository.EditeList(cust_id);
            return list;
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="cust"></param>
        /// <returns></returns>
        public int EditXiu(CustAdminModel cust)
        {
            var list = _ClientAdminRepository.EditXiu(cust);
            return list;
                
        }
        /// <summary>
    /// 字典表
    /// </summary>
    /// <returns></returns>
    public List<DictiDto> DictiShow(string dt_type_key)
    {
            var list = _ClientAdminRepository.DictiShow( dt_type_key);
            return list;
    }
    
    



    }
}
